﻿using MyCode.Project.Infrastructure.Enumeration;
using System;

namespace MyCode.Project.Domain.Businesses.BillKeeping
{
    /// <summary>
    /// 会员帐户金额记账 数据传输对象
    /// </summary>
    public class MemberAccountBillKeepingDto
    {
        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid MemberId { get; set; }

        /// <summary>
        /// 加盟商/null为公司
        /// </summary>
        public Guid? CustomerId { get; set; }

        /// <summary>
        /// 发生操作方向
        /// </summary>
        public DirectFlag DirectFlag { get; set; }

        /// <summary>
        /// 发生金额
        /// </summary>
        public decimal AccValue { get; set; }

        /// <summary>
        /// 业务单号
        /// </summary>
        public string Sheet { get; set; }

        /// <summary>
        /// 业务ID
        /// </summary>
        public Guid SheetId { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        public MemberAccountSheetType SheetType { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Note { get; set; }

        /// <summary>
        /// 业务发生时间
        /// </summary>
        public DateTime SheetTime { get; set; }

        /// <summary>
        /// 店铺ID，必须传
        /// </summary>
        public Guid? ShopId { get; set; }

        /// <summary>
        /// 是否允许跨店计算余额  0=不允许  1=允许
        /// </summary>
        public int IfAllShop { get; set; }


    }
}
